<?php

class Rcp_Methods_Data_CalendarEventType {

  /**
   *
   * @var string 
   */
  public $name;

  /**
   *
   * @var string 
   */
  public $code;

  /**
   *
   * @var string[] 
   */
  public $cssClasses;

  public function __construct(RcpEventDefs $eventDef) {
    $this->name = $eventDef->getName();
    $this->code = $eventDef->getCode();
    $this->cssClasses = explode(';', $eventDef->getCssClass());
  }

}
